import { EVENT_TYPE_FORM_SUBMIT } from '../business/assemble/element/Form';
import { EVENT_TYPE_SEARCH } from '../business/assemble/element/Search';
// 判断事件是否是表单提交类型
export default function validateFormEvent(eventType) {
    return new Promise((resolve, reject) => {
        if ([EVENT_TYPE_FORM_SUBMIT, EVENT_TYPE_SEARCH].indexOf(eventType) > -1) {
            resolve(eventType);
        } else {
            reject(eventType);
        }
    });
}
